package it.creazionicreative;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.widget.Toast;

public class Utils {
	public static void alertbox(Context context, String title, String mymessage)
	{
		new AlertDialog.Builder(context)
		.setMessage(mymessage)
		.setTitle(title)
		.setCancelable(true)
		.setNeutralButton(android.R.string.cancel,
				new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int whichButton){}
		})
		.show();
	}
	
	public static void toast(Context context, String message)
	{
		Toast ts = Toast.makeText(context, message, 1000);
		ts.show();
	}
}
